package router

import (
	v1 "Im/server/service/v1"
	"Im/server/system/middleware"

	"github.com/gin-gonic/gin"
)

func Apiverify(r *gin.Engine) {

	r.Use(middleware.ApiAuth)
	apiver1 := r.Group("/apiv")
	{
		//消息
		apiver1.POST("/v1/msg/list", v1.MsgFri{}.MsgList)

		//好友消息
		apiver1.POST("/v1/friend/friendlist", v1.Friend{}.Friendlist)
		apiver1.POST("/v1/friend/friend_detail", v1.Friend{}.FrienDetail)
		apiver1.POST("/v1/friend/friend_del", v1.Friend{}.StrangerDel)
		apiver1.POST("/v1/friend/stranger", v1.Friend{}.Stranger)
		apiver1.POST("/v1/friend/stranger_add", v1.Friend{}.StrangerAdd)

		//个人资料
		apiver1.POST("/v1/user/user_detail", v1.User{}.UserDetail)
	}
}
